package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AhhcItemsMapper;
import com.ruoyi.system.domain.AhhcItems;
import com.ruoyi.system.service.IAhhcItemsService;

/**
 * 管理端可增删改查Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-14
 */
@Service
public class AhhcItemsServiceImpl implements IAhhcItemsService
{
    @Autowired
    private AhhcItemsMapper ahhcItemsMapper;

    /**
     * 查询管理端可增删改查
     *
     * @param code 管理端可增删改查主键
     * @return 管理端可增删改查
     */
    @Override
    public AhhcItems selectAhhcItemsByCode(String code)
    {
        return ahhcItemsMapper.selectAhhcItemsByCode(code);
    }

    /**
     * 查询管理端可增删改查列表
     *
     * @param ahhcItems 管理端可增删改查
     * @return 管理端可增删改查
     */
    @Override
    public List<AhhcItems> selectAhhcItemsList(AhhcItems ahhcItems)
    {
        return ahhcItemsMapper.selectAhhcItemsList(ahhcItems);
    }

    /**
     * 新增管理端可增删改查
     *
     * @param ahhcItems 管理端可增删改查
     * @return 结果
     */
    @Override
    public int insertAhhcItems(AhhcItems ahhcItems)
    {
        return ahhcItemsMapper.insertAhhcItems(ahhcItems);
    }

    /**
     * 修改管理端可增删改查
     *
     * @param ahhcItems 管理端可增删改查
     * @return 结果
     */
    @Override
    public int updateAhhcItems(AhhcItems ahhcItems)
    {
        return ahhcItemsMapper.updateAhhcItems(ahhcItems);
    }

    /**
     * 批量删除管理端可增删改查
     *
     * @param codes 需要删除的管理端可增删改查主键
     * @return 结果
     */
    @Override
    public int deleteAhhcItemsByCodes(String[] codes)
    {
        return ahhcItemsMapper.deleteAhhcItemsByCodes(codes);
    }

    /**
     * 删除管理端可增删改查信息
     *
     * @param code 管理端可增删改查主键
     * @return 结果
     */
    @Override
    public int deleteAhhcItemsByCode(String code)
    {
        return ahhcItemsMapper.deleteAhhcItemsByCode(code);
    }

    @Override
    public List<AhhcItems> selectShow() {
        List<AhhcItems> list = ahhcItemsMapper.selectShow();
        return list;
    }
}
